/**
 * 首页控制器
 *
 * @file            app/controller/App.controller.Index.js
 * @author          mashanling <msl-138@163.com>
 * @date            2012-03-17 10:06:47
 * @lastmodify      2013-01-14 13:33:54 by mashanling
 */

Ext.define('App.controller.Index', {
    extend: 'App.controller.Base',
    /**
     * 获取url地址
     *
     * @return {String} url地址
     */
    getUrl: function() {
        return '#controller=index&action=index';
    },

    /**
     * 加载首页
     *
     * @return {void} 无返回值
     */
    loadIndex: function() {
        App.cmp.tabs.tabs.length == 0 && App.History.push('');
        App.cmp.tabs.setActiveTab('index');
        App.cmp.viewport.setPageTitle('');
        App.cmp.tree.selectUrl('none');
        App.cmp.card.layout.setActiveItem('appIndex');
    }
});